define(function(require, exports, module) {
	"require:nomunge,exports:nomunge,module:nomunge";

	var view = require('mokit/view');
	var grid = require('mokit/grid');
	var utils = require('mokit/utils');
	var commonUtils = require('../common/utils');
	var app = require('mokit/app');
	var move = require('mokit/move');
	
	/**
	 * 关于页视图
	 */
	return view.create({
		template: module.resovleUri('../templates/ucenter-project-subtask-info.html'),
		el: {
			addPositionPanel: '.ui-add-position-panel',
			mask: '.ui-mask',
			project_name: '.project-name',
			project_summary: '.project-summary',
			//
			position_name: '.position-name',
			position_money: '.position-money',
			position_time: '.position-time',
			position_summary: '.position-summary'
		},
		curUri: require("mokit/navigation").getUri(),
		utils: commonUtils,
		config: app.config,

		/**
		 * 在视图呈现时
		 */
		onRender: function(context) {
			var self = this;
			self.closeAddPosition(context);
			grid.use(self.ui);
		},
		closeAddPosition: function(context, disAni, callback) {
			var self = this;
			var dur = disAni ? 0 : 300;
			move(self.el.addPositionPanel[0])
				.duration(dur)
				.y(361)
				.end(function() {
					if (callback) callback();
				});
			self.el.mask.fadeOut(300);
		},

		openAddPosition: function(context, disAni, callback) {
			var self = this;
			var self = this;
			var dur = disAni ? 0 : 300;
			move(self.el.addPositionPanel[0])
				.duration(dur)
				.y(0)
				.end(function() {
					if (callback) callback();
				});
			self.el.mask.fadeIn(300);
		}
	});
});